@import './mixin.scss';
@import './iconfont.scss';

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

div,
p,
tr,
th,
td,
li,
ul {
    margin: 0;
    padding: 0;
}

label {
    font-weight: 700;
}

li {
    list-style-type: none;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

/*清除浮动*/
.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

/* 超过2行显示省略号 */
.text-ellipsis {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-overflow: ellipsis;
}

/*左右平均分*/
.flexAverage {
    display: flex;

    view {
        flex: 1;
    }
}

/*分布在头尾*/
.flexBetween {
    display: flex;
    justify-content: space-between;
}

// 不平均分
.flexUnequal {
    display: flex;

    .flexUnequal_part {
        width: 65px;
    }

    .flexUnequal_cnt {
        flex: 1 1;
    }

}

.bg {
    // background: #f00;
}